<?php
function login_check(){
	if (!isset($_SESSION['user'])) {
		$nexturl=$_REQUEST['url'];
		http_redirect("login.php", array("nexturl" => $nexturl), true, HTTP_REDIRECT_PERM);
	}
}
?>
